import React from "react";
import App from "./app.jsx";
import { MyProvider } from "./store";

import Child from "./child";

function Wrap(Component) {
  const xxx = function (props) {
    return (
      <MyProvider>
        <Component {...props} />
        <div>
          <h1>Child</h1>
          <Child />
        </div>
      </MyProvider>
    );
  };
  return xxx;
}

export default Wrap(App);
